package com.liveinstars.im.common.enums;

import java.util.HashMap;

/**
 * @author: zhouze
 * @date: 2020/3/5
 */
public enum ReportStatusEnum {

    UN_DO(0, "未处理"),

    ACCEPT(1, "已处理"),

    REFUSE(2, "不处理"),
    ;

    private String text;
    private int value;

    ReportStatusEnum( int value, String text) {
        this.text = text;
        this.value = value;
    }

    private static HashMap<Integer, ReportStatusEnum> enumValueMap = new HashMap<>();

    static {
        for (ReportStatusEnum reportStatusEnum : ReportStatusEnum.values()) {
            enumValueMap.put(reportStatusEnum.getValue(), reportStatusEnum);
        }
    }

    public static ReportStatusEnum valueOf(int value) {
        return enumValueMap.get(value);
    }

    public String getText() {
        return text;
    }

    public int getValue() {
        return value;
    }
}
